import java.util.Scanner;
public class Member {
    String name;
    String age;
    String sex;
    String work;
    int salary;
    public Member(String name,String age,String sex,String work,int salary){
        this.name=name;
        this.age=age;
        this.sex=sex;
        this.work=work;
        this.salary=salary;
    }
    public String getName() {
        return name;
    }

    public String getAge() {
        return age;
    }

    public String getSex() {
        return sex;
    }

    public String getWork() {
        return work;
    }

    public int getSalary() {
        return salary;
    }
    public void show(){
        Company s=new Company("海安","上海市同煌路","239412","建筑、安装、科研、工业");
        System.out.println(s.name+"公司(经营范围："+s.range+";"+"地址："+s.location+";"+"电话："+s.tele+")"+"成员姓名是："+name+";"+"年龄是："+age+";"+"性别是："+sex+";"+"职位是："+work+";"+"薪水是："+salary+"元。");
    }
    public void add(){
        Scanner in=new Scanner(System.in);
    }
//    public EmpfindTopSalary(){
//        int top=0;
//        for(int i=0;i<10;i++)
//        {
//            if(salary>top)
//            {
//                top=salary;
//            }
//        }
//        System.out.println("最高薪水是："+top);
//        return;
//    }
}
